
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试音频输出</title>
</head>
<body>
<span id="click">点击输出音频</span>

</body>
<script type="text/javascript">
    /*加载函数*/
    window.onload= ()=> {
       /* document.getElementById('click').onclick(function () {
            alert("准备播放");
           audio();
        });*/


            var url='/query/get_baidu_audio?src=我叫小小军';
            new Audio(url).play();

    }

</script>
</html>
